package cn.itcast.myapplication;

import android.view.View;

import android.widget.Button;

import android.widget.Toast;

import java.util.Scanner;

import butterknife.BindView;

import cn.itcast.myapplication.base.BaseActivity;

public class TestActivity extends BaseActivity {

    @BindView(R.id.button13)
    Button button13;

    @Override
    public int getLayoutID() {
        return R.layout.activity_test;
    }

    @Override
    public void initView() {

        super.initView();

        button13.setOnClickListener(new View.OnClickListener() {

            @Override
            public void onClick(View view) {

                Toast.makeText(TestActivity.this,"哇哇哇哇哇哇",Toast.LENGTH_SHORT).show();

            }
        });
    }

    @Override
    public void init() {
        super.init();

                 Scanner s=new Scanner(System.in);

                 while (s.hasNextFloat()){

                 float f=s.nextFloat();

                 }

            }

        }

